﻿using SqlSugar;
using static DataModels.Enums.GeneralEnum;

namespace DataModels.Entities.Community
{
    /// <summary>
    /// 物业公告评论
    /// </summary>
    [SugarTable]
    public class PropertyAnnouncementComments
    {
        [SugarColumn(IsPrimaryKey = true)]
        public Guid UUID { get; set; } = Guid.NewGuid();

        /// <summary>
        /// 父级评论ID
        /// </summary>
        public Guid? ParentCommentUUID { get; set; }

        /// <summary>
        /// 公告ID
        /// </summary>
        public Guid PropertyAnnouncementUUID { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }

        public Guid CreateUserUUID { get; set; }

        public string CreateUserName { get; set; }

        public DateTime CreateTime { get; set; } = DateTime.Now;

        public CommentStatus Status { get; set; } = CommentStatus.Draft;
    }
}
